From: Florian Müllner Date: Fri, 23 Nov 2012 00:18:06 +0000 (+0100) Subject: altTab: Use 'switch-applications' for app switcher X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5313 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2fb1d707fec10dfaa7ae888fa3504c157a988c72;p=gnome-shell.git altTab: Use 'switch-applications' for app switcher The Shell's alt-tab popup is application-based, so using the 'switch-windows' keybinding for it never really made sense. Use the newly added 'switch-applications' keybinding instead. https://bugzilla.gnome.org/show_bug.cgi?id=688913 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index b58721923..95f2baddd 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -127,7 +127,7 @@ const AltTabPopup = new Lang.Class({ } } else if (binding == 'switch-group-backward') { this._select(0, this._items[0].cachedWindows.length - 1); - } else if (binding == 'switch-windows-backward') { + } else if (binding == 'switch-applications-backward') { this._select(this._items.length - 1); } else if (this._items.length == 1) { this._select(0); @@ -158,9 +158,9 @@ const AltTabPopup = new Lang.Class({ this._select(this._selectedIndex, backwards ? this._previousWindow() : this._nextWindow()); } else if (action == Meta.KeyBindingAction.SWITCH_GROUP_BACKWARD) { this._select(this._selectedIndex, this._previousWindow()); - } else if (action == Meta.KeyBindingAction.SWITCH_WINDOWS) { + } else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS) { this._select(backwards ? this._previous() : this._next()); - } else if (action == Meta.KeyBindingAction.SWITCH_WINDOWS_BACKWARD) { + } else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS_BACKWARD) { this._select(this._previous()); } else if (this._thumbnailsFocused) { if (keysym == Clutter.Left) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index f4e957838..ef33fbc52 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -136,13 +136,13 @@ const WindowManager = new Lang.Class({ Main.KeybindingMode.NORMAL | Main.KeybindingMode.OVERVIEW, Lang.bind(this, this._showWorkspaceSwitcher)); - this.setCustomKeybindingHandler('switch-windows', + this.setCustomKeybindingHandler('switch-applications', Main.KeybindingMode.NORMAL, Lang.bind(this, this._startAppSwitcher)); this.setCustomKeybindingHandler('switch-group', Main.KeybindingMode.NORMAL, Lang.bind(this, this._startAppSwitcher)); - this.setCustomKeybindingHandler('switch-windows-backward', + this.setCustomKeybindingHandler('switch-applications-backward', Main.KeybindingMode.NORMAL, Lang.bind(this, this._startAppSwitcher)); this.setCustomKeybindingHandler('switch-group-backward',